package com.core.service;

import javax.naming.InitialContext;
import javax.naming.NamingException;

import com.svc.OpenEJBsvc;

public class ServiceInterfaceTest {

	/** 
	 * @param args
	 * @throws NamingException 
	 */
	public static void main(String[] args) throws NamingException { 
		 InitialContext ctx = OpenEJBsvc.openEJB_InitialContext(); 
		 ServiceInterface serviceInterface= ServiceInterface.getInstance(EJBFactory.getInstance(ServiceInterfaceTest.class.getClassLoader(), "jndi.properties"));
	
		 System.out.println("svc="+serviceInterface.doService("SVC_SHGL", "queryForResultSize", "Q_SHGL_SHLX.queryForResultSize"));
	}
	 

}
